1bashThis demonstrates extracting the contents of a tar archive using the tar command.tar --extract --file=foo.tarexternal toolstarextracting files
2bashThis demonstrates creating a compressed archive of multiple files using tar.tar --create --gzip --file=foo.tgz /{bar,baz}.txtexternal toolstararchive creation
3bashThis demonstrates creating a compressed .tgz archive using tar with --create and --gzip options.tar --create --gzip --file=foo.tgz /barexternal toolstararchive creation and compression
4bashThis demonstrates compressing files into a .tgz archive using the tar command.tar --create --gzip --file=foo.tgz /bar.txt /baz.txtexternal toolstararchive creation and compression
5bashThis demonstrates extracting files from a gzip-compressed .tar.gz archive using the tar command.tar --extract --gzip --file=foo.tar.gzexternal toolstarextraction from archive